package com.tinckay.common.constant;


/**
 * @Author: Jean
 * @Desc: 系统常量
 * @Date: 2018/10/21 18:59
 */
public class ProjectConstant {


    /**
     * 验证分组
     */
    public interface Save {
    }

    public interface Update {
    }

    public interface Delete {
    }

    public interface Select {
    }

    /**
     * 登陆用户信息(暂时存放在Session)
     */
    public static final String LOGIN_USER_INFO = "LOGIN_USER_INFO";

    /**
     * 用户锁定状态
     */
    public static final String LOCKED_ACCOUNT = "0";
    public static final String VALID_ACCOUNT = "1";

    /**
     * Captcha验证码
     */
    public static final String CAPTCHA_VALID_CODE = "CAPTCHA_VALID_CODE";

    /**
     * 手机验证码
     */
    public static final String MOBILE_VALID_CODE = "MOBILE_VALID_CODE";

    /**
     * 默认最大测高
     **/
    public static double MAX_HEIGHT = 6.0000;

    /**
     * 仓体高度减少此高度变速
     **/
    public static double ADD_SUB_HEIGHT = 0.2000;

    /**
     * 仓体高度增加此高度停止
     **/
    public static double ADD_STOP_HEIGHT = 0.0100;

    /**
     * 运输任务状态自定义枚举
     */
    public enum TASK_TYPE {

        CHARGE(1, "装料"),
        TRANSPORT(2, "运输"),
        DISCHARGE(3, "卸料"),
        DISCHARGE_SUSPENSION(4, "卸料暂停"),
        RETURN(5, "结束");

        private int code;
        private String msg;

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }

        TASK_TYPE(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }
    }
}
